package org.example.design.acknowledge.controller;

import jakarta.annotation.Resource;
import org.example.design.acknowledge.constant.Constants;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
//@RequestMapping("/producer")
//@RestController
//public class ProducerController {
//    @Resource
//    public RabbitTemplate rabbitTemplate;
//
//    @RequestMapping("/ack")
//    public String ack(){
//        rabbitTemplate.convertAndSend(Constants.ACK_EXCHANGE,"ack","hello ack...");
//        return "发送消息成功";
//    }
//}
